import request from '../../request'
import { AxiosResponse } from 'axios'
import { ResponseData } from '@/types/api/public'

type ConfigType<T=ResponseData> = Promise<AxiosResponse<T>>


export const getsqlx = (commodityName:any): ConfigType => {
    if(commodityName){
        return request({
            url: `/yu/splx?commodityName=${commodityName}`,
            method: 'get',
          })
    }else{
        return request({
            url: '/yu/splx',
            method: 'get',
          })
    }
   
  }